/**
 * @Author: 安广伟
 * @Email: anguangwei@jwzh.tech
 * @Date: 2024-09-10 10:57:04
 * @LastEditTime 2024-09-10 10:57:04
 * @since: 1.0.0
 * @Version: 1.0.0
 * @Description:
 */

package com.ry.mall.server.persistent.entity;

import jakarta.persistence.Basic;
import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.Id;
import jakarta.persistence.Table;
import lombok.Data;
import org.hibernate.annotations.GenericGenerator;

import java.io.Serializable;
import java.sql.Timestamp;

@Entity
@Data
@Table(name = "wx_user", schema = "", catalog = "")
public class WxUserEntity implements Serializable {

    @Id
    @GeneratedValue(generator = "UUID")
    @GenericGenerator(name = "UUID", strategy = "org.hibernate.id.UUIDGenerator")
    @Column(name = "id", nullable = false, length = 36)
    private String id;

    @Basic
    @Column(name = "open_id", nullable = true)
    private String openId;

    @Basic
    @Column(name = "phone", nullable = true)
    private String phone;

    @Basic
    @Column(name = "create_time", nullable = true)
    private Timestamp createTime;

    @Basic
    @Column(name = "update_time", nullable = true)
    private Timestamp updateTime;

    @Basic
    @Column(name = "union_id", nullable = true)
    private String unionId;

    @Basic
    @Column(name = "nick_name", nullable = true)
    private String nickName;

    @Basic
    @Column(name = "sex", nullable = true)
    private String sex;

    @Basic
    @Column(name = "city", nullable = true)
    private String city;

    @Basic
    @Column(name = "head_img_url", nullable = true)
    private String headImgUrl;
}
